package com.lanou.service;


import com.lanou.entity.*;
import org.apache.solr.client.solrj.SolrServerException;



import java.io.IOException;
import java.util.List;


public interface SearchService {
    List<SearchItem> findAll() throws IOException, SolrServerException;

    SearchItem2 searchByKeyword(String keyword, Integer page, Integer rows,Integer sort) throws IOException, SolrServerException;

    boolean addItemToSolr(Long id) throws IOException, SolrServerException;

    boolean delItemToSolr(Long id)throws IOException, SolrServerException;
}
